import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Table1 from './views/nav1/Table1.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import axios from 'axios';

import Department from './views/crm/Department.vue'
import Customer from './views/crm/ly/Customer.vue'
import CustomerTraceHistory from './views/crm/ly/CustomerTraceHistory'
import CustomerTransfer from './views/crm/ly/CustomerTransfer'
import CustomerDevPlan from './views/crm/ly/CustomerDevPlan'
import PotentialCustomer from './views/crm/ly/PotentialCustomer.vue'
import Order from './views/crm/cy/Order'
import Contract from './views/crm/cy/Contract'
import ContractDetails from './views/crm/cy/ContractDetails'
import Guarantee from './views/crm/cy/Guarantee'
import GuaranteeDetails from './views/crm/cy/GuaranteeDetails'
import Employee from './views/crm/wyg/Employee'
import Tenant from './views/crm/wyg/Tenant'
import Menu from './views/crm/gxp/Menu'
import Permission from './views/crm/gxp/Permission'
import Role from './views/crm/gxp/Role'
import TenantCrud from './views/crm/wyg/TenantCrud'
import SetMeal from './views/crm/wyg/SetMeal'
import DictiaryDetails from './views/crm/wyg/DictiaryDetails'
import Dictiary from  './views/crm/wyg/Dictiary'
import SysLog from "./views/crm/wyg/SysLog";

var routes =[
        {path:'/',redirect:'/login'},
        {path:'/login',component:Login},
        {
            path: '/',
            component: Home,
            name: 'Charts',
            iconCls: 'fa fa-bar-chart',
            children: [
                { path: '/echarts', component: echarts, name: '首页' },
                { path: '/department/main', component: Department, name: '部门管理' },
                { path: '/order/main', component: Order, name: '订单管理' },
                { path: '/contract/main', component: Contract, name: '合同管理' },
                { path: '/contract_details/main', component: ContractDetails, name: '合同付款明细' },
                { path: '/guarantee/main', component: Guarantee, name: '保修管理' },
                { path: '/guarantee_details/main', component: GuaranteeDetails, name: '保修单明细' },
                { path: '/customer/main', component: Customer, name: '客户信息管理' },
                { path: '/customer_potential/main', component: PotentialCustomer, name: '潜在客户管理' },
                { path: '/customer_dev_plan/main', component: CustomerDevPlan, name: '客户开发计划' },
                { path: '/customer_trace_history/main', component: CustomerTraceHistory, name: '客户跟进历史' },
                { path: '/cutomer_transfer/main', component: CustomerTransfer, name: '客户移交记录' },
                { path: '/employee/main', component: Employee, name: '员工管理' },
                { path: '/tenant/main', component: Tenant, name: '租户注册' },
                { path: '/menu/main', component: Menu, name: '菜单管理' },
                { path: '/permission/main', component: Permission, name: '权限管理' },
                { path: '/role/main', component: Role, name: '角色管理' },
                { path: '/tenantCrud/main', component: TenantCrud, name: '租户管理' },
                { path: '/setmeal/main', component: SetMeal, name: '套餐管理' },
                { path: '/dictiaryDetails/main', component: DictiaryDetails, name: '字典明细管理' },
                { path: '/dictiary/main', component: Dictiary, name: '字典管理' },
                { path: '/syslog/main', component: SysLog, name: '字典管理' }
            ]
        },
];


export default routes;